package com.diors.game.engine.arpg.scene.model;

/**
 * 场景类型枚举
 * @author	darren.ouyang <ouyang.darren@gmail.com>
 * @date	2013-10-21
 * @version 1.0
 * @copyright Copyright (c) 2013, darren.ouyang
 */
public enum SceneTypeEnum 
{
	
	CITY 	(0, "城市野外"),
	DUNGEON	(1, "副本"),
	;
	
	private int id;
	private String info;
	
	SceneTypeEnum (int id, String info)
	{
		this.id = id;
		this.info = info;
	}

	public int getId() {
		return id;
	}

	public String getInfo() {
		return info;
	}
	
	public static SceneTypeEnum getType (int id)
	{
		for (SceneTypeEnum type : SceneTypeEnum.values())
		{
			if (type.getId() == id)
				return type;
		}
		return null;
	}
}
